<?php
require_once("vcl/vcl.inc.php");
require_once("lib/db_connection.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class tire_tread_wear_delete extends Page
{
       function tire_tread_wear_deleteCreate($sender, $params)
       {
       $get_id = $_GET['id'];
       $get_tire = $_GET['tire_id'];
       if($get_tire!='' && $get_tire!=null && isset($get_tire))
       {
       $query_del = "DELETE FROM tire_tread_wear_tbl WHERE id='".$get_id."'";
       mysql_query($query_del) or die("DELETE ".mysql_error());
       }

       redirect("tire_tread_wear_list.php?tire_id=".$tire_id);
       }

}

global $application;

global $tire_tread_wear_delete;

//Creates the form
$tire_tread_wear_delete=new tire_tread_wear_delete($application);

//Read from resource file
$tire_tread_wear_delete->loadResource(__FILE__);

//Shows the form
$tire_tread_wear_delete->show();

?>